package cn.lianglw.liangclientsdk;

import cn.lianglw.liangclientsdk.client.LiangApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Liang API 客户端配置类
 * @author llw
 */
@Data
@Configuration
@ConfigurationProperties("liang.client")
@ComponentScan
public class LiangApiClientConfig {

    private String accessKey;

    private String secretKey;
    @Bean
    public LiangApiClient getApiClient() {
        return new LiangApiClient(accessKey, secretKey);
    }
}
